using SqlSugar;

namespace CaipuGuanliXitong.Models;

[SugarTable("CookBook")]
public class CookBook
{
    [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
    public int Id { get; set; }
    
    [SugarColumn(Length = 100, IsNullable = false)]
    public string Name { get; set; } = string.Empty;
    
    [SugarColumn(Length = 50, IsNullable = true)]
    public string? Category { get; set; }
    
    public DateTime CreatedTime { get; set; }
    
    public DateTime UpdatedTime { get; set; }
    
    [SugarColumn(IsNullable = false, DefaultValue = "false")]
    public bool IsDeleted { get; set; }
}